home *** CD-ROM | disk | FTP | other *** search
/ Acorn Risc Technologies StrongARM CD-ROM / Acorn Risc Technologies StrongARM CD-ROM.iso / ftp / documents / appnotes / 016_030 / 023c / Text
Encoding:
Text File  |  1993-08-02  |  13.3 KB  |  362 lines

  1. -----------------------------------------------------------------------------
  2. 9th July 1992
  3. -----------------------------------------------------------------------------
  4. Support Group Application Note 
  5. Number: 023 
  6. Issue: 1 
  7. Author:
  8. -----------------------------------------------------------------------------
  9.  
  10. Disc Filing System User Guide - Addendum
  11.  
  12. -----------------------------------------------------------------------------
  13. Applicable Hardware: BBC B
  14.                      BBC B+
  15.                      
  16. Related Application Notes:
  17.  
  18.  
  19. -----------------------------------------------------------------------------
  20. Copyright (C) Acorn Computers Limited 1992
  21.  
  22. Every effort has been made to ensure that the information in this leaflet is 
  23. true and correct at the time of printing. However, the products described in
  24. this leaflet are subject to continuous development and improvements and
  25. Acorn Computers Limited reserves the right to change its specifications at
  26. any time. Acorn Computers Limited cannot accept liability for any loss or
  27. damage arising from the use of any information or particulars in this
  28. leaflet. ACORN, ECONET and ARCHIMEDES are trademarks of Acorn Computers
  29. Limited.
  30. -----------------------------------------------------------------------------
  31. Support Group
  32. Acorn Computers Limited
  33. Acorn House
  34. Vision Park
  35. Histon
  36. Cambridge       CB4 4AE
  37. -----------------------------------------------------------------------------
  38.  
  39. This addendum details the differences bewteen the Acorn 1770 Disc Filing
  40. System (DFS) and DFS 1.20 as described in the Disc Filing System User Guide
  41. issue 2.
  42.  
  43. General
  44.  
  45. The Acorn 1770 DFS (DFS 2.10) is designed to be compatible with the Acorn
  46. DFS version 1.20 (and earlier versions). DFS 2.10 works with a 1770 disc
  47. controller whereas DFS 1.20 operates with an 8271 disc controller. 
  48. Programs/ROMs which directly access an 8271 disc controller will not work
  49. with an DFS 2.10 disc system.  Most discs that work with DFS 1.20 will work
  50. with DFS 2.10, obvious exceptions being protected discs which employ direct
  51. access of the 8271 disc controller.
  52.  
  53. DFS 2.10 uses the same commands as DFS 1.20 but some commands have been
  54. slightly modified, as detailed below. There is no utilities disc with DFS
  55. 2.10 - the *FORM <40/80> and *VERIFY utilities which are disc based with DFS
  56. 1.20 are filing system commands with DFS 2.10; references to a utilities
  57. disc which occur within the user guide should be ignored.  DFS 2.10 contains
  58. several new commands which are not present in DFS 1.20 - see below.
  59.  
  60. Throughout this text references to ROM (read only memory) should be
  61. understood to include any non-volatile memory device with ROM compatible
  62. connections and access time, such as a 2764, 27128 or 27256 EPROM with 250ns
  63. access time.
  64.  
  65.  
  66. DFS 2.10-only Commands
  67.  
  68. * CLOSE
  69.  
  70. Purpose:  closes all sequential files. All disc file data held in RAM output
  71. buffers will be copied to the disc. *CLOSE has the same effect as the
  72. CLOSE#0 in BASIC.
  73.  
  74. Example:  *CLOSE
  75.  
  76. Notes:  The minimum abbreviation for *CLOSE is *CL.
  77.   
  78.  
  79. *EX  (<dir>)
  80.  
  81. Purpose: to display information about the specified directory. The
  82. information is displayed across the screen (in hexadecimal) in the following
  83. order (reading from left to right):  <directory name>, <file name>,
  84. protection attribute, load address, execution address, length in bytes,
  85. start sector number.
  86.  
  87. Examples: *EX $ might give $.!BOOT     L    FF1900    FF8023    00003B   205
  88.                            $.MENU      L    FF1900    FF1900    000332   00B
  89.  
  90.         *EX D might give   D.ROB            FF1900    FFB023    000695   07B
  91.                            D.WORK           000000    000000    000015   2A9
  92.  
  93. (If no <dir> is given, the currently selected directory is examined).
  94.  
  95. Associated commands:    *CAT    *INFO
  96.  
  97.  
  98.  
  99.  
  100.  
  101. *FORM <40/80>  <(drive)> <(drive)> <(drive)> <(drive)> . . . . . . . etc.
  102.  
  103. Purpose:  this command is used to format a disc, enabling it to be used with
  104. DFS 2.10 (or with earlier DFS versions). The command has the same function
  105. as the utilities described in chapter 7 of the user guide, but has slight
  106. operating differences as detailed below.
  107.  
  108. Examples:       *FORM 40
  109.         Format which drive?  0
  110.         GO (Y/N)?  Y
  111.         Formatting drive 0 track <track number>  (runs from &00 to &27)
  112. (This formats a 40 track disc in drive 0)
  113.  
  114.         *FORM 80
  115.         Format which drive?  0
  116.         GO (Y/N)?  Y
  117.         Formatting drive 0 track <track number>  (runs from &00 to &4F)
  118. (This formats an 80 track disc in drive 0)
  119.  
  120.         *FORM 80 0 2
  121.         GO (Y/N)?  Y
  122.         Formatting drive 0 track <track number>
  123.         Formatting drive 2 track <track number>
  124. (Formats both sides of an 80 track disc in drive 0)
  125.  
  126.         *FORM 80 0 2 1 3
  127.         GO (Y/N)?  Y
  128.         Formatting drive 0 track <track number>
  129.         Formatting drive 2 track <track number>
  130.         Formatting drive 1 track <track number>
  131.         Formatting drive 3 track <track number>
  132. (Formats both sides to 80 track discs in drives 0 and 1 of a dual disc
  133. drive)
  134.  
  135. Associated commands:    *ENABLE *VERIFY
  136.  
  137. Notes:  It is not possible to format discs for a 40 track drive in an 80
  138. track drive, nor is it possible to format discs for an 80 track drive in a
  139. 40 track drive. (40 track drives use 48 tracks per inch; 80 track drives use
  140. 96 tracks per inch.)
  141.  
  142. The formatting process uses some I/O processor RAM space, (approximately
  143. 3.5K bytes above OSHWM (usually PAGE in BASIC), so if you wish to save a
  144. program you should do so before formatting a disc. When formatting a disc,
  145. screen memory corruption may occur in any non-shadow display mode for values
  146. of OSHWM greater than &2200. For example, formatting a disc using a BBC
  147. Micro with DFS 2.10 and ADFS installed, and with a second processor
  148. connected and switched on, will corrupt screen memory in display MODEs 0,1
  149. or 2.
  150.  
  151. It is not necessary to insert a space before any of the parameters following *FORM.
  152.  
  153. Pressing anything other than Y in answer to the GO (Y/N)? prompt results in
  154. the formatting sequence being abandoned. Using the *ENABLE command
  155. immediately before the *FORM command results in the GO (Y/N)? prompt being
  156. omitted from the sequence.
  157.  
  158. If formatting a track fails at the first attempt, a ? is displayed after the
  159. track number concerned. If the track fails to format after six attempts,
  160. formatting is abandoned and a disc fault reported.
  161.  
  162. The minimum abbreviation for *FORM is *FO.
  163.  
  164.  
  165. *FREE  (<drive>)
  166.  
  167. Purpose:  to display, for the specified drive, the number of files that can
  168. be added to the catalogue together with the amount of space used and left to
  169. be used in terms of sectors (in hexadecimal) and bytes (in decimal).
  170.  
  171. Examples:       *FREE           31 Files 31E Sectors 204,288 Bytes Free
  172.                         00 Files 002 Sectors         512 Bytes Used
  173. (displays free space in the current drive)
  174.  
  175.         *FREE 1                 00 Files 038 Sectors   14,336 Bytes Free
  176.                         31 Files 2E8 Sectors 190,464 Bytes Used
  177. (displays free space in drive 1)
  178.  
  179. Associated commands:    *COMPACT        *MAP
  180.  
  181. Notes:  the minimum abbreviation for *FREE is *FR.
  182.  
  183.  
  184. *MAP (<drive>)
  185.  
  186. Purpose:  to display a map of the free space available on the disc. The
  187. format is a list of pairs of numbers of the form:  <Sector address> :
  188. <length in sectors>
  189.  
  190. Examples:       *MAP            Address    :    Length
  191.                         010           : 004
  192.                         10A          :  023
  193.                         180           : 050
  194. (displays the free space map on the current drive)
  195.  
  196.         *MAP 1          Address    :            Length
  197.                         045           : 001
  198.                         119           : 080
  199.                         200           : 03A
  200. (displays the free space map on drive 1)
  201.  
  202. Associated commands:    *COMPACT        *FREE   *EX
  203.  
  204. Notes:  If there are a large number of entries in the free space map then
  205. the disc contents have become fragmented and compaction is needed. Use the
  206. *COMPACT command.
  207.  
  208. The minimum abbreviation for *MAP is *MA.
  209.  
  210.  
  211.  
  212. *ROMS (<rom id>)
  213.  
  214. Purpose:  Produces a list of the installed ROMs. The information displayed
  215. consists of the ROM socket number (rom id see 'Notes' below), the ROM type,
  216. the title of the software in the ROM and its version number, if appropriate. 
  217. If a <rom id> is included, then information is displayed just for the
  218. specified ROM (if it is present).  The ROM can be identified by its socket
  219. number or by its title.  The ROM type is displayed as L for a language ROM,
  220. S for a service ROM (eg a filing system ROM), or SL for a service/language
  221. ROM.
  222.  
  223. Examples:  (model B+ only)
  224.         *ROMS           Rom 15 : ( L) BASIC
  225.                         Rom 11 : (S ) DFS 2.0 
  226. (catalogues the installed ROMs)
  227.  
  228.         *ROM 11         Rom 11 : (S ) DFS 2.0
  229. (catalogues the ROM with id number 11)
  230.  
  231.         *ROMS BASIC     Rom 15 : ( L) BASIC
  232. (catalogues the BASIC rom)
  233.  
  234. Notes:  The ROM socket numbers for the BBC Micro Model B+ are detailed under the *FX142 command heading in chapter 43 of the BBC Micro System User Guide
  235.  
  236.  
  237. *VERIFY (<drive>) (<drive>) (<drive>) (<drive>) . . . . . .etc
  238.  
  239. Purpose:  checks the integrity of each sector of a disc. *FORM <40/80>
  240. performs an automatic verification of each track immediately after
  241. formatting it.
  242.  
  243. Examples:       *VERIFY
  244.         Verify which drive?  1
  245.         Verifying drive 1 track <track number>
  246. (verifies drive 1. <track number> runs from &00 to &27 or &00 to &4F as appropriate.)
  247.  
  248.         *VERIFY 0
  249.         Verifying drive 0 track <track number>
  250. (verifies drive 0)
  251.  
  252. Associated commands:    *FORM40 *FORM80 
  253.  
  254. Notes:  if the first attempt to verify a track fails, a ? will be displayed
  255. with the track number. If the track fails to verify after five more
  256. attempts, verification is abandoned and a disc fault is reported.
  257.  
  258. The minimum abbreviation for the *VERIFY command is *V.
  259.  
  260.  
  261. Changed Commands
  262.  
  263. The following keywords to not behave exactly as described in chapter 6 of
  264. the user guide:
  265.  
  266. *BACKUP,  *DESTROY,  *ENABLE
  267.  
  268. *BACKUP and *DESTROY employ a similar prompt system to the *FORM <40/80>
  269. command (see above). They do not need to be enabled, but prior use of the
  270. *ENABLE command will result in the GO (Y/N)? prompt being omitted.
  271.  
  272.  
  273. *DRIVE <drive>
  274.  
  275. The syntax of this command has been changed to:  *DRIVE <drive> (40/80). The
  276. new parameter allows an 80 track drive to read 40 track discs by
  277. double-stepping the drive head.
  278.  
  279. Examples:       *DRIVE 1 40  switches drive 1 of an 80 track drive to 40
  280. track disc mode (read only).
  281.         *DRIVE 1 80  sets drive 1 to 80 track operation.
  282.  
  283. Notes:  *DRIVE <drive> 40 and *DRIVE <drive> 80 should not be used with a 40 track disc drive.
  284.  
  285. Attempting to write using an 80 track drive whilst in 40 track mode will
  286. result in a 'Disc read only' error message. 
  287.  
  288. *FORM ignores the 40 track mode selected with *DRIVE. The *FORM <40/80>
  289. command will format the disc size given by the *FORM <40/80> parameter. Note
  290. that an 80 track drive cannot correctly format discs for 40 track drives,
  291. and vice versa.
  292.  
  293. The command *VERIFY will check a properly formatted 40 track disc in an 80
  294. track drive set to 40 track operation.
  295.  
  296.  
  297. Error Messages
  298.  
  299. The 'Drive Fault' error message (&C5) has been deleted.
  300.  
  301.  
  302. Keyboard Links
  303.  
  304. The interpretation of the keyboard link settings varies slightly from the
  305. description given in chapter 12, as shown below:
  306.  
  307.         Link 3  Link 4  Step time
  308.         0       0         6 ms
  309.         1       0        12 ms
  310.         0       1        20 ms
  311.         1       1        30 ms (default)
  312.  
  313. BBC Micro 800k drives give optimum performance with a stepping rate of 6 ms. 
  314. Drive stepping rates can be set with the *FX255 command. See the BBC Micro
  315. User Guide for details.
  316.  
  317. Special Starting Procedure for Protected Discs
  318.  
  319. Some discs use specially formatted sectors/tracks which are normally
  320. reported as 'faulty' by the DFS. This means that *BACKUP, *COPY, etc. will
  321. not read the disc and so the owner of the disc will be unable to reproduce
  322. it.
  323.  
  324. Certain formats which were used in conjunction with a 8271 disc controller
  325. IC cannot normally be read by a 1770 disc controller. The special loading
  326. program which is on a protected disc will not, therefore, work on a machine
  327. using 1770 DFS.
  328.  
  329. The model B+ is highly compatible with model B machines; the later OS
  330. version 2.00 fitted to model B+ does not normally affect its compatibility.
  331. However, some 'protected' programs include an additional test which reads
  332. the machine Operating System type code, by using INKEY-256 or its OSBYTE
  333. equivalent. Unfortunately, this test fails on the model B+ (OS 2.00).
  334.  
  335.  
  336. CTRL Z BREAK
  337.  
  338. A special boot loading mode, CTRL Z BREAK, has been introduced into 1770 DFS
  339. 2.20 and later. This new mode uses an alternative 8271 emulation technique
  340. which may enable otherwise unloadable discs to be booted-in successfully.
  341.  
  342. In addition, the special boot mode returns -1 to the INKEY-256 command and
  343. so will improve the compatibility of the model B+ with software written for
  344. model B machines.
  345.  
  346.  
  347. When to use CTRL Z BREAK
  348.  
  349. Normally, discs are booted-in by using SHIFT and BREAK (or SHIFT D BREAK) if
  350. DFS is not your default filing system). This procedure will automatically
  351. *EXEC a file called !BOOT from drive 0.
  352.  
  353. Always try SHIFT <D> BREAK first.
  354.  
  355. If SHIFT <D> BREAK fails to load a disc, try using the special boot mode
  356. SHIFT Z BREAK, or even CTRL SHIFT Z BREAK - (hold down CTRL, SHIFT and Z
  357. together, press and release BREAK quickly followed by CTRL, then release
  358. SHIFT and Z together).
  359.  
  360. If none of these options will run the disc program, you should check with
  361. the software supplier, or the dealer from whom you bought the disc, about
  362. its compatibility with 1770 DFS.